﻿#ifndef LOGWIN_H
#define LOGWIN_H

#include <QMainWindow>
#include "QsLog/QsLog.h"
#include "QsLog/QsLogDest.h"
#include "QsLog/QsLogLevel.h"
using namespace QsLogging;

namespace Ui {
class LogWin;
}

class LogWin : public QMainWindow
{
    Q_OBJECT

public:
    explicit LogWin(QWidget *parent = 0);
    ~LogWin();
    static LogWin * logWin;
    static LogWin * instance();
public slots:
    void log(QString str);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();
protected:
    void destroy(bool destroyWindow = true, bool destroySubWindows = true);
private:
    Ui::LogWin *ui;
    bool bPause;
};
#endif // LOGWIN_H
